body {
  background-position: center;
  background-image: url('../images/聊天背景.png');
  background-size: cover;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

#conversationContainer {
flex: 1;
overflow-y: auto;
width: 90%;
max-width: 800px;
margin-top: 100px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
}

.chat {
display: flex;
margin-bottom: 10px;
}

.chat-bubble {
padding: 10px;
border-radius: 5px;
overflow-wrap: break-word;
animation: fadeIn 0.5s ease-in-out;
}

.chat-start {
justify-content: flex-start;
}

pre {
word-wrap: break-word;
white-space: pre-wrap;
}

.chat-end {
justify-content: flex-end;
white-space: pre-line;
}

.chat-bubble{
white-space: pre-line;
}

.loading-button {
width: 25%;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}


#inputContainer {
width: 100%;
max-width: 800px;
margin: 40px auto;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(255, 255, 255, 0.8);
padding: 15px; /* Adjusted padding for increased spacing */
border-radius: 10px;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

select, button {
height: 50px;
font-size: 16px;
border-radius: 5px;
box-sizing: border-box;
}

textarea {
height: 50px; /* Adjust the height if needed */
max-height: 200px;
font-size: 20px;
border-radius: 5px;
box-sizing: border-box;
resize: none;
overflow: hidden;
width: 50%;
padding: 8px;
font-family: '楷体', 'KaiTi', cursive;
}

/* input:before {
content: '\a'; /* 插入换行符 */
/* white-space: pre-wrap; 保留空白和换行 */
/* visibility: hidden;
height: 0; */
/* } */ */

select {
width: 20%;
}

body {
  font-family: Arial, sans-serif; /* 设置字体 */
  line-height: 1.0; /* 设置行间距 */
}

button {
width: 25%;
padding: 10px;
font-family: '楷体', 'KaiTi', cursive;
cursor: pointer;
}

.alert-top {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
}

@keyframes fadeOut {
from {
    opacity: 1;
}
to {
    opacity: 0;
}
}

.toast-container {
position: fixed;
top: 10px;
left: 10px;
right: 20px;
max-width: 300px;
z-index: 1000;
}
.toast {
opacity: 0;
transition: opacity 0.5s ease-in-out;
background-color: #333;
color: #fff;
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
}
.alert-success {
background-color: #28a745;
}
.alert-info {
background-color: #17a2b8;
}

.fade-out {
animation: fadeOut 2s ease-out 1s forwards;
}


.form-control {
background-color: rgba(0, 0, 0, 0.3);
border-radius: 4px;
padding: 10px;
}

.label {
display: flex;
align-items: center;
gap: 8px;
}

.label-text {
font-weight: bold;
font-size: 1.2em;
color: aliceblue;
}

.checkbox {
appearance: none;
width: 20px;
height: 20px;
border: 2px solid rgba(0, 0, 0, 0.3);
border-radius: 4px;
background-color: #ffffff;
cursor: pointer;
}

.checkbox:checked {
background-color: #65cc52;
border-color: #65cc52;
}